package com.example.onlinetaxi.dto.OrderDto;

import java.util.Date;

public class OrderDTO {
    // 订单id
    private Integer id;

    // 起点
    private String startInfo;

    private String startCity;

    // 终点
    private String endInfo;

    private String endCity;

    // 派单状态0、撤销状态1、被接单状态2(结束)
    private String state;

    // 预计时间
    private Integer time;

    // 预计里程
    private Double distance;

    // 预计开销
    private Double cost;

    // 订单创建时间
    private Date createTime;

    // 用户需要叫车的时间（立即/预约）
    private Date useCarTime;

    // 用户订单类型（立即、预约）
    private String useCarType;

    // 距离司机的距离
    private String distanceToDriver;

    public OrderDTO() {
    }

    public OrderDTO(Integer id, String startInfo, String endInfo, String useCarType, String state) {
        this.id = id;
        this.startInfo = startInfo;
        this.endInfo = endInfo;
        this.state = state;
        this.useCarType = useCarType;
    }

    public String getDistanceToDriver() {
        return distanceToDriver;
    }

    public void setDistanceToDriver(String distanceToDriver) {
        this.distanceToDriver = distanceToDriver;
    }

    public String getStartCity() {
        return startCity;
    }

    public void setStartCity(String startCity) {
        this.startCity = startCity;
    }

    public String getEndCity() {
        return endCity;
    }

    public void setEndCity(String endCity) {
        this.endCity = endCity;
    }

    public OrderDTO(Integer id, String startInfo, String startCity, String endInfo, String endCity, String state, Integer time, Double distance, Double cost, Date createTime, Date useCarTime, String useCarType) {
        this.id = id;
        this.startInfo = startInfo;
        this.startCity = startCity;
        this.endInfo = endInfo;
        this.endCity = endCity;
        this.state = state;
        this.time = time;
        this.distance = distance;
        this.cost = cost;
        this.createTime = createTime;
        this.useCarTime = useCarTime;
        this.useCarType = useCarType;
    }

    public String getUseCarType() {
        return useCarType;
    }

    public void setUseCarType(String useCarType) {
        this.useCarType = useCarType;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStartInfo() {
        return startInfo;
    }

    public void setStartInfo(String startInfo) {
        this.startInfo = startInfo;
    }

    public String getEndInfo() {
        return endInfo;
    }

    public void setEndInfo(String endInfo) {
        this.endInfo = endInfo;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public Double getDistance() {
        return distance;
    }

    public void setDistance(Double distance) {
        this.distance = distance;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUseCarTime() {
        return useCarTime;
    }

    public void setUseCarTime(Date useCarTime) {
        this.useCarTime = useCarTime;
    }

    @Override
    public String toString() {
        return "OrderDTO{" +
                "id=" + id +
                ", startInfo='" + startInfo + '\'' +
                ", startCity='" + startCity + '\'' +
                ", endInfo='" + endInfo + '\'' +
                ", endCity='" + endCity + '\'' +
                ", state='" + state + '\'' +
                ", time=" + time +
                ", distance=" + distance +
                ", cost=" + cost +
                ", createTime=" + createTime +
                ", useCarTime=" + useCarTime +
                ", useCarType='" + useCarType + '\'' +
                ", distanceToDriver='" + distanceToDriver + '\'' +
                '}';
    }
}
